package com.sxbbc.common.core.entity.jz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 行业信息主表
 * </p>
 *
 * @author leehao
 * @since 2019-05-09
 */
@TableName("industry")
public class Industry extends Model<Industry> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 行业名称
     */
    private String name;

    /**
     * 图片
     */
    private String url;

    /**
     * 1正常 0无效
     */
    private Integer status;

    /**
     * 行业对应大分类id 逗号分隔
     */
    private String firstIds;

    /**
     * 0线上行业 1线下行业 2全部行业
     */
    private Integer onOff;

    /**
     * 1店铺行业
     */
    private Integer type;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 行业详细信息
     */
    @TableField(exist = false)
    private List<IndustryDetail> industryDetailList;

    /**
     * 分类名称 逗号分隔
     */
    @TableField(exist = false)
    private String classifyName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getFirstIds() {
        return firstIds;
    }

    public void setFirstIds(String firstIds) {
        this.firstIds = firstIds;
    }
    public Integer getOnOff() {
        return onOff;
    }

    public void setOnOff(Integer onOff) {
        this.onOff = onOff;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public List<IndustryDetail> getIndustryDetailList() {
        return industryDetailList;
    }

    public void setIndustryDetailList(List<IndustryDetail> industryDetailList) {
        this.industryDetailList = industryDetailList;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Industry{" +
        "id=" + id +
        ", name=" + name +
        ", url=" + url +
        ", status=" + status +
        ", firstIds=" + firstIds +
        ", onOff=" + onOff +
        ", type=" + type +
        ", sort=" + sort +
        "}";
    }
}
